<html lang="en">

<head>
    
    <meta charset="UTF-8">
    
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <title>Document</title>
</head>

<body>
    
    <script>
        var txt = prompt("请输入星期一到星期日");
        switch (txt) {
            case "星期一":
                alert("上班, 开会"); break;
            case "星期二":
                alert("上班, 团队讨论需求"); break;
            case "星期三":
                alert("上班, 制定方案"); break;
            case "星期四":
                alert("上班,编写程序"); break;
            case "星期五":
                alert("上班, 汇报工作"); break;
            case "星期六":
                alert("休息"); break;
            case "星期日":
                alert("休息"); break;
            default:
                alert("暂不支持"); break;
        }

    </script>
</body>

</html>